home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- global firstMonthlyDay, stamp, correctionMade, currentCycleNo, cycleNo, userNo, wantsToViewCycles
- cursor(4)
- set wantsToViewCycles to 0
- set x to the mouseV
- set y to the mouseH
- put " " into field "problem"
- if (y < 188) and (y > 122) then
- if (x > 123) and (x < 159) then
- makeCorrection()
- else
- if (x > 84) and (x < 120) then
- if getAt(cycleNo, userNo) > 1 then
- killcorrection()
- if correctionMade = 0 then
- writecycleinfo()
- puppetVisible(13, 48, 1)
- puppetStatus(11, 48, 0)
- go("Precyclelist")
- cursor(0)
- else
- set wantsToViewCycles to 1
- go("save changes")
- cursor(0)
- end if
- else
- cursor(0)
- alert("No previous cycles found.")
- end if
- else
- if (x > 162) and (x < 198) then
- if correctionMade = 0 then
- killcorrection()
- writecycleinfo()
- if currentCycleNo <> getAt(cycleNo, userNo) then
- set currentCycleNo to getAt(cycleNo, userNo)
- readCycleInfo()
- end if
- puppetVisible(13, 48, 1)
- puppetStatus(11, 48, 0)
- prepfrontpage()
- else
- go("save changes")
- cursor(0)
- end if
- end if
- end if
- end if
- else
- if the castNum of sprite 11 = the number of member "nob" then
- if (x > 179) and (x < 206) then
- if (y > 191) and (y < 207) then
- cursor(4)
- if firstMonthlyDay > 1 then
- set firstMonthlyDay to firstMonthlyDay - 1
- resetMonthlyDays()
- end if
- else
- if (y > 500) and (y < 517) then
- cursor(4)
- if (firstMonthlyDay + 11) < count(stamp) then
- set firstMonthlyDay to firstMonthlyDay + 1
- resetMonthlyDays()
- end if
- else
- if (y > 207) and (y < 500) then
- if y > the locH of sprite 11 then
- if (firstMonthlyDay + 12) < count(stamp) then
- set firstMonthlyDay to firstMonthlyDay + 2
- resetMonthlyDays()
- else
- if (firstMonthlyDay + 11) < count(stamp) then
- set firstMonthlyDay to firstMonthlyDay + 1
- end if
- resetMonthlyDays()
- end if
- else
- if (firstMonthlyDay - 1) > 1 then
- set firstMonthlyDay to firstMonthlyDay - 2
- resetMonthlyDays()
- else
- if firstMonthlyDay > 1 then
- set firstMonthlyDay to firstMonthlyDay - 1
- end if
- resetMonthlyDays()
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- cursor(0)
- end
-